package models

// TempDevice device临时表
type TempDevice struct {
	RobotID      string `gorm:"column:robot_id;type:string;size:40"`
	ProvinceID   string `gorm:"column:province_id;type:int;size:64"`
	CityID       string `gorm:"column:city_id;type:int;size:64"`
	DistrictID   string `gorm:"column:district_id;type:int;size:64"`
	LocationID   string `gorm:"column:location_id;type:int;size:64"`
	MerchantID   string `gorm:"column:merchant_id;type:int;size:64"`
	MerchantPath string `gorm:"column:merchant_path;type:string;size:200"`
}

// TableName device临时表的表名称
func (TempDevice) TableName() string {
	return "temp_device"
}

// 模式自动注册
func init() {
	Models = append(Models, &TempDevice{})
}
